production:
  <% if !@redis_enable_client %>
  id:
  <% end %>
  <% if defined?(@cluster_nodes) && !@cluster_nodes.empty? %>
  <%- if @cluster_username %>username: <%= @cluster_username %><% end %>
  <%- if @cluster_password %>password: <%= @cluster_password %><% end %>
  cluster:
    <% @cluster_nodes.each do |node| %>
    -
      host: <%= node['host'] %>
      port: <%= node['port'] %>
    <% end %>
  <% else %>
  url: <%= @redis_url %>
  <% unless @redis_sentinels.empty? %>
  sentinels:
    <% @redis_sentinels.each do |sentinel| %>
    -
      host: <%= sentinel['host'] %>
      port: <%= sentinel['port'] %>
      <%- if @redis_sentinels_password %>password: "<%= @redis_sentinels_password %>"<% end %>
    <% end %>
  <% end %>
  <% end %>
